<?php

/**
 * page actions.
 *
 * @package    khas
 * @subpackage page
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 3335 2007-01-23 16:19:56Z fabien $
 */
class statsActions extends sfActions
{
    public function preExecute()
    {
        ProjectConfiguration::getApplicationConfiguration('front', 'prod', false)->loadHelpers('Url');
    }
    
    public function executeShow(sfWebRequest $request)
    {
    	  $this->seasonId = $request->getParameter('seasonId');
    	
        $breadcrumbs = array();
        $breadcrumbs[] = '<span>&raquo;</span><a href="'.url_for('stats/show').'">Стат</a>';
        $this->getResponse()->setSlot('breadcrumbs', $breadcrumbs);
    }
    
    public function executeIndex(sfWebRequest $request)
    {

        $this->seasonId = $request->getParameter('seasonId', 1);
		$this->orderByColumn = $request->getParameter('orderByColumn');
		$this->order = $request->getParameter('order');

        $breadcrumbs = array();
        $breadcrumbs[] = '<span>&raquo;</span><a href="'.url_for('stats/index').'">Стат</a>';
        $this->getResponse()->setSlot('breadcrumbs', $breadcrumbs);
    }


}